package com.surpassun.emall.util;

public class Constants {

	/****	Permission actions	****/
	public static final String PERMISSION_ACTION_ACCESS_ADMIN_PAGE = "ACCESS_ADMIN_PAGE";
	public static final String PERMISSION_ACTION_ADD_STORE = "ADD_STORE";
	public static final String PERMISSION_ACTION_UPDATE_STORE = "UPDATE_STORE";
	public static final String PERMISSION_ACTION_DELETE_STORE = "DELETE_STORE";
	public static final String PERMISSION_ACTION_ADD_USER = "ADD_USER";
	public static final String PERMISSION_ACTION_UPDATE_USER = "UPDATE_USER";
	public static final String PERMISSION_ACTION_DELETE_USER = "DELETE_USER";
	
	
	/****	Web attributes	****/
	public static final String ATTR_USER = "user";
	public static final String ATTRIBUTE_USER_NAME = "username";
	public static final String ATTRIBUTE_IS_LOGIN = "isLogin";
	public static final String ATTRIBUTE_PAGE_TITLE = "pageTitle";
	public static final String ATTRIBUTE_HAS_PERMISSION_ACCESS_ADMIN_PAGE = "hasAdminPermission";
	
	public static final String ATTR_CATEGORIES = "categories";
	public static final String ATTR_POPULAR_CATEGORIES = "popularCategories";
	public static final String ATTR_POPULAR_CITIES = "popularCities";
	public static final String ATTR_STORES = "stores";
	public static final String ATTR_STORE_TYPES = "storeTypes";
	public static final String ATTR_PRODUCTS = "products";
	public static final String ATTR_KEYWORD = "keyword";
	
	public static final String ATTR_PROVINCES = "provinces";
	public static final String ATTR_ADMIN_MENUS = "adminMenus";
	public static final String ATTR_IS_ADMIN_PAGE = "isAdminPage";
	
	public static final String HOME = "home";
	public static final String ORIGINAL_URL = "originalURL";
	
	//admin page
	public static final String ATTR_ADD_STORE = "addStore";
	public static final String ATTR_EDIT_STORE_FROM = "from";
	public static final String ATTR_STORE = "store";
	
	
	/****	Service and Repository constants	****/
	public static final String STATISTICS_TYPE_CATEGORY = "CATEGORY";
	public static final String STATISTICS_TYPE_CITY = "CITY";
	
	/****	Ajax messages	****/
	public static final String LOGIN_SUCCESS = "LOGIN_SUCCESS";
	public static final String LOGIN_ERROR = "LOGIN_ERROR";
	
	/****	Other constants	****/
	public static final String ATTR_APPLICATION_CACHE = "APPLICATION_CACHE";
	public static final String ROLE_NAME_ADMIN = "Admin";
	public static final String ATTR_USERS = "users";
	public static final String ATTR_COUNTRIES = "countries";
	public static final String ATTR_CITIES = "cities";
}
